package com.blog.service.impl;

import com.blog.entity.Article;
import com.blog.service.EsArticleService;
import com.blog.utils.ArticleSearchUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EsArticleServiceImpl implements EsArticleService {
    @Resource
    private ArticleSearchUtils articleSearchUtils;

    @Override
    public void articlesearchbykeyword(String keyword) {
//        List<Article> articles = articleSearchUtils.searchByTitleOrContent(keyword);

    }

    @Override
    public List<String> getsuggestkeywords(String keyword) {

        return null;
    }
}
